计算机与现代化 ›› 2012, Vol. 1 ›› Issue (6): 125-130.doi: 10.3969/j.issn.1006-2475.2012.06.034

• 网络与通信 • 上一篇    下一篇

网络最小生成树更新策略

程 远1,2   

  1. 1.中国科学技术大学计算机科学与技术学院,安徽 合肥 230027;2.铜陵学院网络中心,安徽 铜陵 244000
  • 收稿日期:2011-11-29 修回日期:1900-01-01 出版日期:2012-06-14 发布日期:2012-06-14

An Update Strategy for Minimum Spanning Tree of Net

CHENG Yuan1,2   

  1. 1. School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China;2. Network Center, Tongling University, Tongling 244000, China
  • Received:2011-11-29 Revised:1900-01-01 Online:2012-06-14 Published:2012-06-14

摘要: 求解最小生成树问题被广泛应用于求解现实中的搜索相关问题。然而现实瞬息万变,一个连通网络的节点常常发生变动。而一旦发生改变,传统算法必须要再次计算最小生成树。但是虽然节点发生了变动,最小生成树未必全部发生改变,这就造成了不必要的浪费。鉴于此提出一种基于Kruskal算法和Prim算法的最小树更新策略,对Kruskal算法和Prim算法做了改进,使其不必重新计算也能在连通图发生改变时更新最小生成树。

关键词: Kruskal算法, Prim算法, 最小生成树, 连通网络

Abstract: Solving the problem of minimum spanning tree has been widely used to solve searching issues in reality. However, the node of a connected graph net is often changed, and, once it's changed, the traditional algorithm has to recalculate the minimum spanning tree. But, even the graph node changes, not all of minimum spanning tree will be changed, which results in unnecessary waste. This article is aimed at improving Kruskal algorithm and Prim algorithm, which can update the minimum spanning tree when the graph changes without recalculating.

Key words: Kruskal algorithm, Prim algorithm, minimum spanning tree, connected graph net

中图分类号: